//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class doChanel
	{

		#region "构造方法"
		public doChanel()
		{
			m_cname = null;
			m_id = 0;

			m_chanel = 0;
		}
		#endregion


		#region "私有变量"
		private string m_cname;
		private int m_id;

		private short m_chanel;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual string cname {
			get { return m_cname; }
			set { m_cname = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int id {
			get { return m_id; }
			set { m_id = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual short chanel {
			get { return m_chanel; }
			set { m_chanel = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			doChanel castObj = (doChanel)obj;
			return (castObj != null) && (m_id == castObj.id);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_id.GetHashCode();
			return hash;
		}
		#endregion
	}
}
